//gin功能实现


package itil

import (
	"github.com/gin-gonic/gin"
)

func Routers(e *gin.Engine)  {

	supplier:=e.Group("/supplier")
	{
		supplier.GET("/",test1)
		supplier.POST("/add",insertSupplier)
	}

	db:=e.Group("/db")
	{
		db.GET("/",test2)
		db.GET("/createTable/",createTable)
		db.GET("/dropTable/",dropTable)
	}

	department:=e.Group("/department")
	{
		department.GET("/",test3)
	}

	employee:=e.Group("/employee")
	{
		employee.GET("/",test4)
	}

	device:=e.Group("/employee")
	{
		device.GET("/",test5)
	}

	devicesType:=e.Group("/employee")
	{
		devicesType.GET("/",test6)
	}

}